{include file="public/header" /}
<style>
    .layui-input-block{width: 80%}
    .layui-form-radio>.lay-skin-tag,
    .layui-form-checkbox>.lay-skin-tag{
        font-size: 13px;
        border-radius: 5px;
        height: 25px;
        line-height: 25px;
        margin-top: 7px;
        margin-right: 10px;
        color: #fff !important;
        background: #d2d2d2 !important;
    }
    .layui-form-checked>.lay-skin-tag,
    .layui-form-radioed>.lay-skin-tag {
        background-color: #16b777 !important;
    }
</style>
<body>
<div class="x-body">
    <form action="{:url('save')}" class="layui-form" id="form">
        <input type="hidden" name="id" value="{$info.id}"/>
        <div class="layui-form-item">
            <label class="layui-form-label">手机号 </label>
            <div class="layui-input-block">
                <input type="text" name="mobile" value="{$info.mobile}" placeholder="请输入手机号" lay-verify="required" class="layui-input"/>
            </div>
        </div>
        
        <div class="layui-form-item">
            <label class="layui-form-label">姓名 </label>
            <div class="layui-input-block">
                <input type="text" name="rname" value="{$info.rname}" placeholder="请输入姓名" lay-verify="required" class="layui-input"/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">性别</label>
            <div class="layui-input-block">
                <input type="radio" name="sex" value="1" title="男 ♂" lay-skin="none" {if $info.sex == 1} checked {/if}>
                <div lay-radio class="lay-skin-tag layui-badge">男 ♂</div>
                <input type="radio" name="sex" value="2" title="女 ♀" lay-skin="none" {if $info.sex == 2} checked {/if}>
                <div lay-radio class="lay-skin-tag layui-badge">女 ♀</div>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">年龄 </label>
            <div class="layui-input-block">
                <input type="text" name="age" value="{$info.age}" placeholder="请输入年龄" lay-verify="required" class="layui-input"/>
            </div>
        </div>
        
        <div class="layui-form-item">
            <label class="layui-form-label">出生日期</label>
            <div class="layui-input-block">
                <input type="text" name="birth" id="birth" readonly  value="{$info.birth}" lay-verify="required" placeholder="yyyy-MM-dd"
                       lay-reqtext="请填写出生日期" class="layui-input" lay-verType="tips"/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">身份证号</label>
            <div class="layui-input-block">
                <input type="text" name="id_card" id="id_card" value="{$info.id_card}" lay-verify="required" placeholder="请填写身份证号"
                       lay-reqtext="请填写身份证号" class="layui-input" lay-verType="tips"/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">课程类型</label>
            <div class="layui-input-block" id="catelist">
                {volist name="cate" id="vo"}
                <input type="radio" name="cate" value="{$vo.id}" lay-skin="none" {if $info.cate == $vo.id} checked {/if}  title="{$vo.title}" >
                <div lay-radio class="lay-skin-tag layui-badge">{$vo.title}</div>
                {/volist}
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">工作经历</label>
            <div class="layui-input-block">
                <textarea name="content" id="content" placeholder="请填写工作经历" class="layui-textarea">{$info.content}</textarea>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">锁定登录</label>
            <div class="layui-input-block">
                <input type="radio" name="is_lock" value="0" title="正常" {if !$info.is_lock} checked {/if}>
                <input type="radio" name="is_lock" value="1" title="锁定" {if $info.is_lock} checked {/if}>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"></label>
            <button class="layui-btn" lay-filter="save" lay-submit formObj="#form">保存</button>
        </div>
    </form>
</div>
</body>
{include file="public/footer" /}
<script>
    layui.use(['laydate'], function(){
        var laydate = layui.laydate;
        laydate.render({
            elem: '#birth' //指定元素
        });
    });
</script>
</html>